<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ include file="/taglibs.jsp"%>

<s:url value="/images" var="imgPath"/>
<!-- 月历 -->
<script type="text/javascript" charset="UTF-8" src="/js/formValidator.js"></script>
<script type="text/javascript" charset="UTF-8" src="/js/formValidatorRegex.js"></script>
<script type="text/javascript" charset="UTF-8" src="/js/jquery.datepick.js"></script>
<script type="text/javascript" charset="UTF-8" src="/js/jquery.datepick-zh-CN.js"></script>
<script type="text/javascript" charset="UTF-8" src="/js/jquery.alphanumeric.js"></script>
<script type="text/javascript" charset="UTF-8" src="/js/yaodian100.common.js"></script>
<link rel="stylesheet" type="text/css" href="/css/smoothness.datepick.css" />
<script type="text/javascript" src="/js/jquery.timePicker.js"></script>
<link rel="stylesheet" type="text/css" href="/css/timePicker.css"/>
		
<script language="javascript">
	$().ready( function() {
		$("#submitButton").click(function(){
			if ($("input[name='uploadFile']").val() == '') {
				alert("请选择档案");
				return false;
			}
		});
		
	});	
</script>
<s:actionerror/>
<s:actionmessage/>
<s:fielderror />
<s:form action="blackBook!importBlackBookList.do" method="post" id="formObj" enctype="multipart/form-data">
	<h1>汇入异常名单</h1>
	<div class="f-link">
		<a href="search.do">回会员查询页</a>
	</div>
	<table class="tb-data" width="100%">
		<tr>
			<th>上传名单</th>
			<td>
				<s:if test="%{importResult == null}">
					<s:file name="uploadFile" />
				</s:if>
				<s:else>
					处理结果：
					<br/>
					总笔数：<s:property value="%{importResult.totalCount}" />
					<br/>
					新增笔数：<s:property value="%{importResult.successCount}" />
					<br/>
					重覆资料笔数：<s:property value="%{importResult.failCount}" />
					<br/>
				</s:else>
			</td>
		</tr>
		<s:if test="%{importResult == null}">
			<tr>
				<th></th>
				<td>
					<s:submit id="submitButton" value="送出"></s:submit>
					<a href="blackBook!downloadListFileExample.do">下载名单范例</a>
				</td>
			</tr>
		</s:if>
	</table>
</s:form>
